import Vue from 'vue'
import App from './App.vue'

// 1.引入库
import Vuex, { Store } from "vuex"
// 2.注册
Vue.use(Vuex)
// 3.创建仓库实例
const store = new Store({
  state: {
    name: "小明",
    age: 18,
    gender: "男"
  }
})

Vue.config.productionTip = false

new Vue({
  // 4.挂载到 new vue  实例中
  store,
  render: h => h(App),
}).$mount('#app')
